package dlwntk6545;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JCheckBox;

public class dffd extends JFrame {

	private JPanel contentPane;
	private String ac;
	private String ac2;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					dffd frame = new dffd();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public dffd() {
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 450, 300);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		contentPane.setLayout(new BorderLayout(0, 0));
		setContentPane(contentPane);
		
		JPanel panel = new JPanel();
		contentPane.add(panel, BorderLayout.CENTER);
		
		ac = "X";
		ac2 = "O";
		
		
		JCheckBox chckbxNewCheckBox = new JCheckBox("New check box");
		if(ac.equals("X")){
			chckbxNewCheckBox.setSelected(true);
			
		}
		panel.add(chckbxNewCheckBox);
		
		JCheckBox chckbxNewCheckBox_1 = new JCheckBox("New check box");
		if(ac2.equals("X")){
			chckbxNewCheckBox_1.setSelected(true);
			
		}
		panel.add(chckbxNewCheckBox_1);
	}

}
